﻿<%@page import="com.hh.bss.util.StringHelper" %>
<%
  String cvId=request.getParameter("cvId");
  String type=request.getParameter("type");  
  if (StringHelper.isEmpty(cvId)) cvId="0";
%>
<!DOCTYPE html>  
<html>  
<head>  
    <meta charset="UTF-8">  
    <title>Basic Layout - jQuery EasyUI Demo</title> 

    <%@ include file="/WEB-INF/inc/default.jsp"%>
    <jsp:include page="/WEB-INF/inc/dic.jsp"/> 	    	
    
 <style type="text/css"> 
 	  html { font-size:12px; height:100%;} 
    body {MARGIN: 0px; font-size:12px; height:100%; }
 </style>    
<script type="text/javascript">  

   var cvId=<%=cvId%>;

            
</script>    
    
<body>  
  
    <div class="easyui-layout" align=center style="width:100%;height:610px;overflow:hidden">  
    	
    	 <!---上面区域(开始)   --->

        <div data-options="region:'north',split:true" style="height:360px">  
             
            <iframe id="cvinfo" src="/talent/cv/cvInfo.do?type=UPDATE&cvId=<%=cvId%>" style="width:100%;height:99%"></iframe>
            
        </div>
       <!---上面区域(结束)--->
       
        
        <!---下面区域(开始)--->
        <div data-options="region:'center',iconCls:'icon-ok'" style="width:98%;height:260px"">  
        	 <div id="tab_panel" class="easyui-tabs" tabPosition="bottom" style="width:1150px;height:250px">
        	 	
        	 	    <div  title="中文简历">
                     <div id="tab_panel_cn" class="easyui-tabs" style="width:1130px;height:215px">  
                         <div title="工作经历" url="/talent/cvWork/managerPage.do?is_eng=0" >  
                             <iframe  name="tab_panel1" src="" style="width:98%;height:99%"></iframe>  
                         </div>  
                         <div  title="教育经历" url="/talent/cvEducation/managerPage.do?is_eng=0" >  
                             <iframe  name="tab_panel2" src="" style="width:98%;height:99%"></iframe>  
                         </div>  
                         <div title="培训经历" url="/talent/cvTrainning/managerPage.do?is_eng=0" >  
                             <iframe " name="tab_panel3" src="" style="width:98%;height:99%"></iframe> 
                         </div>
                         <div title="技能"  url="/talent/cvSkill/managerPage.do?is_eng=0" >  
                             <iframe  name="tab_panel4" src="" style="width:98%;height:99%"></iframe> 
                         </div>
                         <div title="薪酬详情" url="/talent/cvSalary/info.do?1=1" >  
                             <iframe " name="tab_panel5" src="" style="width:98%;height:99%"></iframe>
                         </div>
                         <div title="人选附件" url="/talent/cvAttachment/managerPage.do?1=1">  
                             <iframe " name="tab_panel6" src="" style="width:98%;height:99%"></iframe>
                         </div>
                         <div title="顾问评语" url="/project/searchProjectInterview/cvConsultantInterviewPage.do?1=1" >  
                             <iframe " name="tab_panel7" src="" style="width:98%;height:99%"></iframe>
                         </div>
                         <div title="推荐记录" url="/project/contractJobCvRecom/cvRecomPage.do?1=1">  
                             <iframe " name="tab_panel8" src="" style="width:98%;height:99%"></iframe>
                         </div>
                     </div>  	
                 </div>    
                 <div  title="英文简历">
                 	   <div id="tab_panel_en" class="easyui-tabs" style="width:1130px;height:200px">  
                         <div title="工作经历(英)" url="/talent/cvWork/managerPage.do?is_eng=1">  
                             <iframe  name="tab_panel1" src="" style="width:98%;height:99%"></iframe>  
                         </div>  
                         <div  title="教育经历(英)" url="/talent/cvEducation/managerPage.do?is_eng=1" > 
                             <iframe  name="tab_panel2" src="" style="width:98%;height:99%"></iframe>  
                         </div>  
                         <div title="培训经历(英)" url="/talent/cvTrainning/managerPage.do?is_eng=1">  
                             <iframe " name="tab_panel3" src="" style="width:98%;height:99%"></iframe> 
                         </div>
                         <div title="技能(英)"  url="/talent/cvSkill/managerPage.do?is_eng=1">  
                             <iframe  name="tab_panel4" src="" style="width:98%;height:99%"></iframe> 
                         </div>
                         <div title="薪酬详情" url="/talent/cvSalary/info.do?1=1">  
                             <iframe " name="tab_panel5" src="" style="width:98%;height:99%"></iframe>
                         </div>
                         <div title="人选附件" url="/talent/cvAttachment/managerPage.do?1=1">  
                             <iframe " name="tab_panel6" src="" style="width:98%;height:99%"></iframe>
                         </div>
                         <div title="顾问评语" url="/project/searchProjectInterview/cvConsultantInterviewPage.do?1=1" >  
                             <iframe " name="tab_panel7" src="" style="width:98%;height:95%"></iframe>
                         </div>
                         <div title="推荐记录" url="/project/contractJobCvRecom/cvRecomPage.do?1=1" >  
                             <iframe " name="tab_panel8" src="" style="width:98%;height:95%"></iframe>
                         </div>
                     </div>  
                 </div>	
          </div>
            
        </div>  
        <!---下面区域(结束)--->
        
    </div>  
 

    
    <div id="wSelectCompany" class="easyui-window" title="Modal Window" data-options="modal:true,closed:true,iconCls:'icon-save'" style="width:950px;height:350px;padding:2px;">
        <iframe  frameborder="no" name="tab_panel8" src="" style="width:100%;height:90%"></iframe>
        <div  style="text-align:center">  
          <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="doSelectCompany();">确定</a>  
          <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="$('#wSelectCompany').window('close')">关闭</a>  

       </div>         
    </div>
   

    
<style type="text/css">  
        #fm{  
            margin:0;  
            padding:10px 30px;  
        }  
        .ftitle{  
            font-size:14px;  
            font-weight:bold;  
            padding:5px 0;  
            margin-bottom:10px;  
            border-bottom:1px solid #ccc;  
        }  
        .fitem{  
            margin-bottom:5px;  
        }  
        .fitem label{  
            display:inline-block;  
            width:80px;  
        }  
    </style> 
    
    <script type="text/javascript">  
     	  
        //设置
        var url='/talent/cv/save.do';
        <%if ("UPDATE".equals(type)){ %>
            url='/talent/cv/update.do';
            $('#cvinfo')[0].contentWindow.closeWin=function(){
						   //curWin.window('close');
						   if (window.parent.closeWin) window.parent.closeWin();
				     };
				     
				     $('#cvinfo')[0].onload=function(){
				     	  				     	  
				     	  $('#cvinfo')[0].contentWindow.closeWin=function(){
				     	  	 if (window.closeWin) window.closeWin();
				     	  	 //console.log(window);
				     	  	 //console.log(window.parent);				     	  	 
				     	  };	
				     	  $('#cvinfo')[0].contentWindow.refresh=function(){						   
						      if (window.refresh) window.refresh();
				        };
				     	  
				     };	
				     
				     //console.log($('#cvinfo')[0].contentWindow);
				    // alert('modify');
				     
				     //  alert('modify2');
        <% }%>
        


       
        
     	  $('#tab_panel_cn').tabs({
        	    onSelect: function(title,index){
        	    
        	    	var tab=$('#tab_panel_cn').tabs('getTab', index);
        	    
        	    	tab.find('iframe')[0].contentWindow.location.href=tab.attr('url')+"&cvId="+cvId;
        	    	console.log(tab.find('iframe')[0].contentWindow.src);
        	    	
        	    }
        });        
       
        $('#tab_panel_en').tabs({
        	    onSelect: function(title,index){
        	    
        	    	var tab=$('#tab_panel_en').tabs('getTab', index);
        	    
        	    	tab.find('iframe')[0].contentWindow.location.href=tab.attr('url')+"&cvId="+cvId;
        	    	console.log(tab.find('iframe')[0].contentWindow.src);
        	    	
        	    }
        });

  

     </script>
     
     
</body>  
</html>

